package saleMarket.domain;

import lombok.*;
import saleMarket.domain.authority.Actor;

import java.io.Serializable;

@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
@ToString
//顾客
public class Customer extends Actor implements Comparable<Customer>, Serializable {
    private Integer id;
    private String no;
    private String name;
    private String sex;
    //个性签名
    private String signature;
    private Integer phoneNumber;
    private String address;

    public Customer(String no,String name){
        this.no = no;
        this.name = name;
    }

    @Override
    public int compareTo(Customer other) {
        // no为排序依据
        return this.no.compareTo(other.no);
    }
}
